const mongoose = require('mongoose')

const serSchema = new mongoose.Schema({
    usename:{
        type:String,
        required:true
    },
    pwd:{
        type:String,
        required:true
    },
    userid:String,
    status:Number,
    date:{
        type:String,
        required:false
    },
    sex:{
        type:Number,
        required:false
    },
    userEmail:{
        type:String,
        required:false
    },
    remark:{
        type:String,
        required:false
    },
    status:Number,
    startTime:String,
    endTime:String,
    userInfo:Object,
    mobile:Object,
    role:String,
    job:String,
    deptId:String,
    rolelist:[],
})

const User = mongoose.model('users',serSchema)

module.exports={
    User
}